import 'package:edu_assistant/generated/json/base/json_field.dart';
import 'package:edu_assistant/generated/json/media_item_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class MediaItemEntity {
	int? id;
	String? mediaUrl;
	String? mediaName;
	String? mediaImage;

	MediaItemEntity();

	factory MediaItemEntity.fromJson(Map<String, dynamic> json) => $MediaItemEntityFromJson(json);

	Map<String, dynamic> toJson() => $MediaItemEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}